/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * RegistrationForm.java
 *
 * Created on May 31, 2012, 12:34:07 PM
 */
package exercises.day04.pt01.bean;

import exercises.day04.pt01.dao.Account_Holder_DAO;
import exercises.day04.pt01.dao.Account_Holder_Transaction_DAO;
import exercises.day04.pt01.dao.Account_Registration_DAO;
import exercises.day04.pt02.Exception.*;
import exercises.day05.pt02.fileio.ReadWrite;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;

/**
 *
 * @author Student
 */
public class RegistrationForm extends javax.swing.JFrame {

    JFileChooser fc = new JFileChooser();

    /**
     * Creates new form RegistrationForm
     */
    public RegistrationForm() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblFName = new javax.swing.JLabel();
        txtFName = new javax.swing.JTextField();
        lblFName1 = new javax.swing.JLabel();
        txtLName = new javax.swing.JTextField();
        lblFName2 = new javax.swing.JLabel();
        txtPhone = new javax.swing.JTextField();
        lblAccountType = new javax.swing.JLabel();
        cbAccountType = new javax.swing.JComboBox();
        lblFName3 = new javax.swing.JLabel();
        txtAnnualIncome = new javax.swing.JTextField();
        lblPhone = new javax.swing.JLabel();
        lblAccountID = new javax.swing.JLabel();
        txtAccountHolderID = new javax.swing.JTextField();
        lblBalance = new javax.swing.JLabel();
        txtBalance = new javax.swing.JTextField();
        btnSubmit = new javax.swing.JButton();
        btnUpload = new javax.swing.JButton();
        lblRegistrationId = new javax.swing.JLabel();
        txtRegistrationId = new javax.swing.JTextField();
        lblAccountHolderId = new javax.swing.JLabel();
        txtAccountHolderTransactionId = new javax.swing.JTextField();
        txtAddress = new javax.swing.JTextField();
        lblUpload = new javax.swing.JLabel();
        txtUploadLocation = new javax.swing.JTextField();
        btnImport = new javax.swing.JButton();
        lblSearchBy = new javax.swing.JLabel();
        cbSearchAccountType = new javax.swing.JComboBox();
        btnExport = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Register");
        setName("Register"); // NOI18N
        setResizable(false);

        lblFName.setText("First Name");

        lblFName1.setText("Last Name");

        lblFName2.setText("Address");

        lblAccountType.setText("Account Type");

        cbAccountType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Savings", "Current", "Fixed Deposit" }));

        lblFName3.setText("Annual Income");

        lblPhone.setText("Phone");

        lblAccountID.setText("Account Holder ID");

        txtAccountHolderID.setText(" ");

        lblBalance.setText("Balance");

        txtBalance.setText(" ");

        btnSubmit.setText("Submit");
        btnSubmit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSubmitActionPerformed(evt);
            }
        });

        btnUpload.setText("Upload");
        btnUpload.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnUploadActionPerformed(evt);
            }
        });

        lblRegistrationId.setText("Registration ID");

        lblAccountHolderId.setText("Account Holder Transaction ID");

        lblUpload.setText("Upload file");

        txtUploadLocation.setEditable(false);

        btnImport.setText("Import");
        btnImport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImportActionPerformed(evt);
            }
        });

        lblSearchBy.setText("Search by:");

        cbSearchAccountType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Savings", "Current", "Fixed Deposit" }));

        btnExport.setText("Export");
        btnExport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExportActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblRegistrationId)
                        .addGap(18, 18, 18)
                        .addComponent(txtRegistrationId, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(429, 429, 429))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblFName1)
                                    .addComponent(lblFName)
                                    .addComponent(lblFName2)
                                    .addComponent(lblAccountType))
                                .addGap(25, 25, 25)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cbAccountType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(txtAddress, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(txtFName, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(txtLName, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE))))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(lblFName3)
                                        .addGap(18, 18, 18)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                            .addComponent(txtPhone, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtAnnualIncome, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addComponent(lblPhone))
                                .addGap(4, 4, 4))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(lblBalance)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(txtBalance, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(lblAccountID)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtAccountHolderID, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 67, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(lblAccountHolderId)
                                .addGap(18, 18, 18)
                                .addComponent(txtAccountHolderTransactionId, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(54, 54, 54)
                                .addComponent(btnSubmit)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(72, 72, 72)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(lblUpload)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtUploadLocation, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(btnExport)
                                        .addGroup(layout.createSequentialGroup()
                                            .addComponent(btnUpload)
                                            .addGap(18, 18, 18)
                                            .addComponent(btnImport)))))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(lblSearchBy)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cbSearchAccountType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(25, 25, 25))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRegistrationId)
                    .addComponent(txtRegistrationId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFName)
                    .addComponent(txtFName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFName1)
                    .addComponent(txtLName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFName2)
                    .addComponent(txtAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblUpload)
                    .addComponent(txtUploadLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAccountType)
                    .addComponent(cbAccountType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnUpload)
                    .addComponent(btnImport))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblFName3)
                    .addComponent(txtAnnualIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblPhone)
                    .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAccountID)
                    .addComponent(txtAccountHolderID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSearchBy)
                    .addComponent(cbSearchAccountType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblBalance)
                    .addComponent(txtBalance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExport))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAccountHolderId)
                    .addComponent(txtAccountHolderTransactionId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnSubmit)
                .addContainerGap(85, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void btnSubmitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSubmitActionPerformed
    try {
        // TODO add your handling code here:



        AccountRegistration a = new AccountRegistration(txtRegistrationId.getText(),
                txtFName.getText(), txtLName.getText(), txtAddress.getText(),
                cbAccountType.getSelectedItem().toString(),
                txtAnnualIncome.getText(), txtPhone.getText());


        Account_Holder b = new Account_Holder(txtAccountHolderID.getText(),
                a.getRegId(),
                txtBalance.getText());

        Account_Holder_Transaction c = new Account_Holder_Transaction(txtAccountHolderTransactionId.getText(),
                b.getAhID(), "Opening",
                "0", b.getBalance());


        Account_Registration_DAO rdao = new Account_Registration_DAO();
        Account_Holder_DAO hdao = new Account_Holder_DAO();
        Account_Holder_Transaction_DAO ahdao = new Account_Holder_Transaction_DAO();

        rdao.register(a);
        hdao.register(b);
        ahdao.log(c);


        JOptionPane.showMessageDialog(this, "Successfully added");



    } catch (AHIdIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AHBalanceIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AccountTypeIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AddressIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (FirstNameIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (LastNameIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AnnualIncomeIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (PhoneIsNullException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AHTIDIsNotNumericException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (RegisterIdIsNotIntegerException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (IncomeIsNotDoubleException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AccountTypeIsInvalidException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AddressLenghtLessThan25Exception ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (NameIsJohnDoeException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (AnnualIncomeValidationException ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    } catch (PhoneLenghtLessThan7Exception ex) {
        JOptionPane.showMessageDialog(this, ex.toString());
    }





}//GEN-LAST:event_btnSubmitActionPerformed

    class MyFilter extends javax.swing.filechooser.FileFilter {

        public boolean accept(File file) {
            String filename = file.getName();
            return filename.endsWith(".txt");
        }

        public String getDescription() {
            return "*.txt";
        }
    }

private void btnUploadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUploadActionPerformed

    {


        fc.addChoosableFileFilter(new MyFilter());

        int returnVal = fc.showOpenDialog(this);

        if (returnVal == JFileChooser.APPROVE_OPTION) {
            File file = fc.getSelectedFile();
            //This is where a real application would open the file.
            txtUploadLocation.setText(file.getPath());

        }


    }//end of browse
}//GEN-LAST:event_btnUploadActionPerformed

private void btnImportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImportActionPerformed
    try {
        ReadWrite rw = new ReadWrite();
        rw.readSave(txtUploadLocation.getText());
    } catch (Exception ex) {
        JOptionPane.showMessageDialog(this, "No valid file uploaded");
    }

}//GEN-LAST:event_btnImportActionPerformed

private void btnExportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportActionPerformed
    ReadWrite rw = new ReadWrite();


    // rw.searchAccountType("Savings");



    File file;
    JFileChooser fc = new JFileChooser();

    //  System.out.println(file.getAbsolutePath());


    // Start in current directory
    fc.setCurrentDirectory(new File("."));

    // Set filter for Java source files.
    fc.setFileFilter(new MyFilter());

    // Set to a default name for save.


    // Open chooser dialog
    int result = fc.showSaveDialog(this);

    if (result == fc.APPROVE_OPTION) {
       
        System.out.println();
        
         file = rw.searchAccountType("Savings",fc.getSelectedFile().toString()+".txt");
        fc.accept(file);
        System.out.println(file.getAbsolutePath());
        
        if (file.exists()) {
            
            
            int response = JOptionPane.showConfirmDialog(null,
                    "Overwrite existing file?", "Confirm Overwrite",
                    JOptionPane.OK_CANCEL_OPTION,
                    JOptionPane.QUESTION_MESSAGE);

        }


    }





//    
//
//    JFileChooser fileChooser = new JFileChooser();
//
//    if (fileChooser.showSaveDialog(null) == 0);
//    {
//        File file = fileChooser.getSelectedFile();
//
//        System.out.println(System.getProperty("user.dir"));
//        System.out.println(file.getAbsolutePath());
//        file = new   File(file.getAbsolutePath());
//        rw.searchAccountType(cbSearchAccountType.getSelectedItem().toString(), file.getAbsolutePath());
//    }
}//GEN-LAST:event_btnExportActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(RegistrationForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(RegistrationForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(RegistrationForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(RegistrationForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new RegistrationForm().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnExport;
    private javax.swing.JButton btnImport;
    private javax.swing.JButton btnSubmit;
    private javax.swing.JButton btnUpload;
    private javax.swing.JComboBox cbAccountType;
    private javax.swing.JComboBox cbSearchAccountType;
    private javax.swing.JLabel lblAccountHolderId;
    private javax.swing.JLabel lblAccountID;
    private javax.swing.JLabel lblAccountType;
    private javax.swing.JLabel lblBalance;
    private javax.swing.JLabel lblFName;
    private javax.swing.JLabel lblFName1;
    private javax.swing.JLabel lblFName2;
    private javax.swing.JLabel lblFName3;
    private javax.swing.JLabel lblPhone;
    private javax.swing.JLabel lblRegistrationId;
    private javax.swing.JLabel lblSearchBy;
    private javax.swing.JLabel lblUpload;
    private javax.swing.JTextField txtAccountHolderID;
    private javax.swing.JTextField txtAccountHolderTransactionId;
    private javax.swing.JTextField txtAddress;
    private javax.swing.JTextField txtAnnualIncome;
    private javax.swing.JTextField txtBalance;
    private javax.swing.JTextField txtFName;
    private javax.swing.JTextField txtLName;
    private javax.swing.JTextField txtPhone;
    private javax.swing.JTextField txtRegistrationId;
    private javax.swing.JTextField txtUploadLocation;
    // End of variables declaration//GEN-END:variables
}
